<?php

require_once ('lib/swift_required.php');

//Create the Transport
/*
$transport = Swift_SmtpTransport::newInstance('plus.smtp.mail.yahoo.com', 25)
  ->setUsername('roopam_1589')
  ->setPassword('')
  ;
*/

/* 
You could alternatively use a different transport such as Sendmail or Mail:
*/
//Sendmail
//$transport = Swift_SendmailTransport::newInstance('/usr/sbin/sendmail -bs');
/*
//Mail
 */
$transport = Swift_MailTransport::newInstance();


//Create the Mailer using your created Transport
$mailer = Swift_Mailer::newInstance($transport);

//Create a message
$message = Swift_Message::newInstance('Gausipp mails')
  ->setFrom(array('no_reply@gausipp.com' => 'gausipp'))
  ->setTo(array('roopunk@live.com'))
  ->setBody('This is a test mail. Braww!')
  ;

//Send the message


if($mailer->send($message)) 
echo "done";
else 
echo "false";

?>